<template>
    <div class="flex_col_start m5 p10 card">
        <label class="flex_center_self">切膜</label>
        <div class="flex_row_center mt5">
            <el-button @click="onClickCut(0)" type="primary">切膜向上</el-button>
            <el-button @click="onClickCut(1)" type="primary">切膜向下</el-button>
        </div>
    </div>
</template>

<script lang="ts" setup>
import { cut_cup } from '@/service/devices/drop';
import { runAction } from '@/utils/ui';


async function onClickCut(ctrl: number) {
    await runAction('切膜', '', async () => {
        await cut_cup(ctrl);
    })
}

</script>
